package com.fj.pojo

/**
 * open表示可被继承
 */
open class Person(val name:String, val age:Int) {
    fun printInfo(){
        println(name + ":" + age)
    }
}

//fun main(){
//    val person = Person()
//    person.name = "张三"
//    person.age = 33
//    person.printInfo()
//}